package reflect;

import java.lang.reflect.Modifier;

public class ReflectTest09 {
    public static void main(String[] args) throws Exception {
        StringBuffer stringBuffer = new StringBuffer();

        Class<?> aClass = Class.forName("service.UserService");

        stringBuffer.append(Modifier.toString(aClass.getModifiers()) + " class " + aClass.getSimpleName() + " { ");
        // ...
        stringBuffer.append("}");
        System.out.println(stringBuffer);
    }
}
